<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>打开和保存文件</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="opening_and_saving_files">打开和保存文件</h2>

  <p class="h2subheading">— 加载和保存您的书 —</p>

  <p>Sigil supports opening EPUB files and reading HTML and text files. When Sigil saves your book it saves in the EPUB format: the EPUB file will contain all of your HTML files, images, stylesheets, fonts, etc. zipped up into one file.</p>
  <p>Sigil 支持打开 EPUB 文件以及读取 HTML 和文本文件。当 Sigil 保存您的书籍时，它会以 EPUB 格式保存：EPUB 文件将包含您的所有 HTML 文件，图像，样式表，字体等，并压缩为一个文件。</p>

  <div class="tip">
    <p class="tiptext">Save early, save often, and make backup copies!</p>
    <p class="tiptext">尽早保存，经常保存并制作备份副本！</p>

    <p class="tiptext">Always close Sigil before you open your EPUB in another program – or the other program will lock the file and prevent you from saving in Sigil.</p>
    <p class="tiptext">在另一个程序中打开 EPUB 之前，请始终关闭 Sigil ——否则另一个程序将锁定文件并阻止您保存在 Sigil 中。</p>
  </div>

  <h3 class="sigil_not_in_toc">打开和添加文件</h3>

  <h4 class="sigil_not_in_toc">打开文件</h4>

  <p>To open a file, click the Open button <img alt="" src="../Images/document-open_22px.png"/>, or select the menu item <span class="menuitem">File→Open</span> or its keyboard shortcut then choose the file you want to open:</p>
  <p>要打开文件，请单击“打开”按钮 <img alt="" src="../Images/document-open_22px.png"/>，或选择菜单项 <span class="menuitem">文件→打开</span> 或它的键盘快捷键，然后选择要打开的文件：</p>

  <div class="indent">
    <p>EPUB 文件</p>

    <ul>
      <li>Everything in the EPUB file is loaded automatically: HTML files, images, stylesheets, metadata, etc..</li>
      <li>EPUB 文件中的所有内容都会自动加载：HTML 文件，图像，样式表，元数据等。</li>

      <li>Sigil will organise your files into standard folders as shown in the Book Browser.</li>
      <li>Sigil 会将文件组织到标准文件夹中，如“书本浏览器”中所示。</li>

      <li>If the EPUB contains common errors Sigil will try to correct them.</li>
      <li>如果 EPUB 包含常见错误，Sigil 将尝试纠正它们。</li>

      <li>Depending on your preferences, Sigil will format or clean the HTML files.</li>
      <li>根据您的喜好，Sigil 将格式化或清除 HTML 文件。</li>

      <li>If the EPUB still contains invalid HTML files after cleaning, Sigil will still load the file and report the errors that need to be fixed.</li>
      <li>如果在清理后 EPUB 仍然包含无效的 HTML 文件，Sigil 仍将加载该文件并报告需要修复的错误。</li>
    </ul>

    <p>HTML 文件</p>

    <ul>
      <li>The HTML file and any linked files and stylesheets are imported if possible and placed into the appropriate folders.</li>
      <li>如果可能，将导入 HTML 文件以及任何链接的文件和样式表，并将其放置在适当的文件夹中。</li>

      <li>The metadata in the HTML file will be loaded into the metadata for the book.</li>
      <li>HTML 文件中的元数据将被加载到该书的元数据中。</li>

      <li>Depending on your preferences, Sigil will format or clean the files.</li>
      <li>根据您的喜好，Sigil 将格式化或清除文件。</li>

      <li>If the HTML file is still invalid after cleaning, Sigil will report the error but may not load the file. You may have to fix the errors outside of Sigil.</li>
      <li>如果清理后 HTML 文件仍然无效，Sigil 将报告错误，但可能不会加载该文件。您可能必须修复 Sigil 之外的错误。</li>
    </ul>
  </div>

  <p>Text 文件</p>

  <ul>
    <li>The text file will be converted to HTML. Paragraphs must be separated by blank lines to have them split into separate paragraphs.</li>
    <li>text 文件将转换为 HTML。段落必须用空白行分隔，以将其拆分为单独的段落。</li>
  </ul>

  <h4 class="sigil_not_in_toc">添加文件</h4>

  <p>Add files to your EPUB by clicking the Add Existing Files button <img alt="" src="../Images/document-add_22px.png"/>, selecting the menu item <span class="menuitem">File→Add→Existing Files</span>, or right-clicking on a file in the Book Browser and choose <span class="menuitem">Add Existing Files</span>:</p>
  <p>通过单击添加现有文件按钮 <img alt="" src="../Images/document-add_22px.png"/> 将文件添加到 EPUB，选择菜单项 <span class="menuitem">文件→添加 →现有文件</span>，或在图书浏览器中右键单击文件，然后选择 <span class="menuitem">添加现有文件</span>：</p>

  <div class="indent">
    <p>HTML 文件</p>

    <ul>
      <li>Metadata is not loaded from the file (unlike when you use Open).</li>
      <li>不会从文件中加载元数据（与使用“打开”时不同）。</li>

      <li>Sigil will attempt to load files that are referenced.</li>
      <li>Sigil 将尝试加载引用的文件。</li>

      <li>Files will be placed into their appropriate folder.</li>
      <li>文件将被放置在相应的文件夹中。</li>
    </ul>

    <p>图像文件</p>

    <ul>
      <li>Files will be placed into the Images folder.</li>
      <li>文件将被放置在图像文件夹中。</li>
    </ul>

    <p>视频文件</p>

    <ul>
      <li>Files will be placed into the Video folder.</li>
      <li>文件将被放置到 Video 文件夹中。</li>
    </ul>

    <p>音频文件</p>

    <ul>
      <li>Files will be placed into the Audio folder.</li>
      <li>文件将被放入 Audio 文件夹。</li>
    </ul>

    <p>样式表文件</p>

    <ul>
      <li>Files will be placed into the Styles folder.</li>
      <li>文件将放置在 Styles 文件夹中。</li>
    </ul>

    <p>字体文件</p>

    <ul>
      <li>Files will be placed into the Fonts folder.</li>
      <li>文件将放置在 Fonts 文件夹中。</li>
    </ul>

    <p>其他文件</p>

    <ul>
      <li>All other files will be placed in the Misc folder as they are not usually used in an EPUB, although certain text files in the Misc folder can be edited in Sigil.</li>
      <li>所有其他文件都将放置在 Misc 文件夹中，因为在 EPUB 中通常不使用它们，尽管可以在 Sigil 中编辑 Misc 文件夹中的某些文本文件。</li>
    </ul>
  </div>

  <h4 class="sigil_not_in_toc">添加空白文件</h4>

  <div>
    You can also create new empty files in Sigil. Select the menu item <span class="menuitem">File→Add</span> and choose from blank HTML page, blank CSS stylesheet, or blank SVG image (a special image format). You can also do this using this Book Browser, or even add a keyboard shortcut in Preferences.
  </div>
  <div>
    您也可以在 Sigil 中创建新的空文件。选择菜单项 <span class="menuitem">文件→添加</span>，然后从空白 HTML 页面，空白 CSS 样式表或空白 SVG 图像（特殊图像格式）中进行选择。您也可以使用此图书浏览器执行此操作，甚至可以在“偏好设置”中添加键盘快捷键。
  </div>

  <h3 class="sigil_not_in_toc" id="saving_your_book">保存您的 EPUB</h3>

  <p>Save your book by clicking the Save button <img alt="" src="../Images/document-save_22px.png"/>, or selecting the menu item <span class="menuitem">File→Save</span> or its shortcut. You should always save your document before doing major edits in case you want to undo them.</p>
  <p>通过单击“保存”按钮 <img alt="" src="../Images/document-save_22px.png"/> 或选择菜单项 <span class="menuitem">文件→保存</span> 或其快捷方式来保存您的书。在进行重大修改之前，应始终保存文档，以防撤消它们。</p>

  <p>Your saved EPUB file contains all the files that make up your book – your text, images, stylesheets, embedded fonts, table of contents, metadata, etc.</p>
  <p>保存的 EPUB 文件包含构成书的所有文件 - 文本、图像、样式表、嵌入的字体、目录、元数据等。</p>

  <div class="tip">
    <p class="tiptext">If you edit any text in your document, an asterisk ( <b>*</b> ) is added to the file’s name in the titlebar.</p>
    <p class="tiptext">如果您在文档中编辑任何文本，则会在标题栏中的文件名中添加一个星号（<b>*</b>）。</p>
  </div>

  <p>When you save your book Sigil will check it for certain errors and warn you if you need to fix anything. But you should always run <span class="menuitem">Validate EPUB with FlightCrew</span> to check for typical EPUB issues.</p>
  <p>保存您的书时，Sigil 将检查它是否存在某些错误，并在需要修复任何内容时警告您。但是您应该始终运行 <span class="menuitem">使用 FlightCrew 验证 EPUB</span> 来检查典型的 EPUB 问题。</p>

  <div class="tip">
    <p class="tiptext">Sigil will not always be able to save an EPUB that contains errors, so frequent saves will make it easier to identify if there are errors that you need to correct.</p>
    <p class="tiptext">Sigil 并非总是能够保存包含错误的 EPUB，因此频繁保存将使您更容易识别是否需要更正错误。</p>

    <p>Sigil will also clean your source code according to your preferences when saving the file.</p>
    <p>保存文件时，Sigil 还将根据您的喜好清除源代码。</p>
  </div>

  <h4 class="sigil_not_in_toc" id="save_a_copy">保存副本</h4>

  <p>You can select <span class="menuitem">File→Save A Copy</span> to save a copy of your EPUB to a different filename. The difference between Save or Save As is that the current book you are working on is not renamed. So you can use this feature to save your EPUB without changing the name of your book or the directory you save files to.</p>
  <p>您可以选择 <span class="menuitem">文件→保存副本</span>，将 EPUB 的副本保存到其他文件名。“保存”或“另存为”之间的区别在于，您正在处理的当前书籍未重命名。因此，您可以使用此功能来保存 EPUB，而无需更改书名或保存文件的目录。</p>

  <div class="tip">
    <p class="tiptext">Use <span class="menuitem">File→Save A Copy</span> for quick backups.</p>
    <p class="tiptext">使用 <span class="menuitem">文件→保存副本</span> 进行快速备份。</p>
  </div>

  <h3 class="sigil_not_in_toc" id="saving_files">保存单个文件</h3>

  <p>You can also right-click on a file name in the Book Browser and select <span class="menuitem">Save As</span> from the context menu. You can then name and save the specific file to a directory on your computer. If you select more than one file, all files will be saved to your chosen directory. This is a quick way to share a specific file with someone without sharing the EPUB, or to create a template file you can use for other books.</p>
  <p>您也可以在“图书浏览器”中右键单击文件名，然后从上下文菜单中选择 <span class="menuitem">另存为</span>。然后，您可以命名特定文件并将其保存到计算机上的目录中。如果选择多个文件，则所有文件将保存到所选目录中。这是一种无需共享 EPUB 即可与某人共享特定文件或创建可用于其他书籍的模板文件的快速方法。</p>
</body>
</html>